package de.lang.rollo.controller.configurations;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotEmpty;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yammer.dropwizard.config.Configuration;

public class DatabaseConfiguration {

	@NotEmpty
	@JsonProperty
	String mongoDb = "rollo";
	@NotEmpty
	@JsonProperty
	String mongoHost = "localhost";
	@Min(1)
	@Max(65535)
	@JsonProperty
	int mongoPort = 27017;

	public String getMongoDb() {
		return mongoDb;
	}

	public String getMongoHost() {
		return mongoHost;
	}

	public int getMongoPort() {
		return mongoPort;
	}

}
